package day03;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

public class IFDemo {
    public static void main(String[] args) {
        //满5000打4折，满2000不满5000打6折，满1000不满2000打7折，满500不满1000打9折
        double price = 700.0;
        if (price>=5000){
            price*=0.4;
        }else if(price>=2000){
            price*=0.6;
        }else if(price>=1000){
            price*=0.7;
        }else{
            price*=0.9;
        }
        System.out.println("最终消费金额"+price);













        /*
        //满1400打6折，不满1400打8折
        double price = 900.0;
        if (price>=1400) {
            price*=0.6;
        }else {
            price*=0.8;
        }
        System.out.println("最终消费金额为："+price);

        int score = 555;
        if(score>=0 && score<=100){
            System.out.println(score+"是成绩合法");
        }else{
            System.out.println(score+"不是合法成绩");
        }

         */







        /*
        //满1000打1折；
        double price =1000;
        if(price>=500) {
            price *=0.7;
        }
        System.out.println("最终消费金额为"+price);

        int score = 95;
        if(score>=0 && score<=100){
            System.out.println("成绩合法");
        }
        System.out.println("继续执行...");

         */















    }
}
